package com.wangyk.rabbitmqconsole.service;

import com.wangyk.rabbitmqcommon.model.console.User;
import com.wangyk.rabbitmqcommon.resp.CommonResp;

import java.util.List;

/**
 * @Description:
 * @Author: wangyk
 * @CreateDate: 2018/12/28$ 10:55$
 * @UpdateUser: wangyk
 * @UpdateDate: 2018/12/28$ 10:55$
 * @UpdateRemark:
 * @Version: 1.0
 */
public interface UserService
{
    User selectUserById(Integer userId);

    List<User> selectAll();

    CommonResp deleteByPrimaryKey(Integer userId);

    CommonResp updateUserInfo(User user);

    CommonResp insertUserReturnId(User user);

    CommonResp selectUsersByPage();
}
